package UMC.Web;

public class UIFaceDialog extends UIDialog {

    public UIFaceDialog(String name, String no) {
        super();
        this.config.put("Face", new WebMeta("Name", name, "NO", no));
    }

    @Override
    protected String type() {
        return "Face";
    }

    /*
     * 开启声音
     */
    public UIFaceDialog setVoice(boolean value) {

        if (value) {
            this.config.put("IsVoice", true);
        } else {

            this.config.remove("IsVoice");
        }

        return this;
    }

}
